<h2 class="contentTitle">编辑分类</h2>
<form action="<?php echo SITE_URL . 'index.php?a=cate&m=ajaxEdit';?>" method="post" class="pageForm required-validate" onsubmit="return validateCallback(this, dialogAjaxDone)">
<div class="pageContent">
	<div class="pageFormContent" layoutH="97">
        <div class="unit">
            <label>分类名：</label>
            <input type="text" name="cate_name" size="25" class="required textInput valid" value="<?php echo $cate_info['cate_name'];?>">
            <input type="hidden" name="cate_id" value="<?php echo $cate_info['cate_id'];?>" class="required valid"/>
            <span class="inputInfo">填写分类名称</span>
		</div>
        <div class="unit">
            <label>操作模块：</label>
            <input type="text" name="action_url" size="25" class="textInput" value="<?php echo $cate_info['action_url'];?>">
            <span class="inputInfo">如a=user&m=add</span>
		</div>
        <div class="unit">
            <label>所属分类：</label>
            <input name="parent_cate_id" type="hidden" value="<?php echo $cate_info['parent_cate_id'];?>"/>
            <input type="text" name="parent_cate_name" size="25" class="textInput" value="<?php echo $parent_cate_info['cate_name'];?>" readonly=""/>
            <span class="inputInfo">暂时不支持更新分类</span>
		</div>
        <div class="unit">
            <label>权限组：</label>
		    <input name="role_ids" type="hidden" value="<?php echo $role_ids;?>"/>
            <textarea rows="2" cols="30" class="textInput" name="role_names"  readonly=""><?php echo $role_names;?></textarea>
			<a class="btnLook" target="dialog" href="<?php echo SITE_URL . 'index.php?a=role&m=ajaxLookUp&rel=edit_cate'; ?>" mask="true"  rel="role_lookup">选择所属权限组</a>
            <span class="inputInfo">点击选择权限组</span>
		</div>
        <div class="unit">
            <label>是否显示：</label>
            <select class="combox" name="is_show">
                <option value="0" <?php if($cate_info['is_show'] == 0) echo 'selected=""';?>>否</option>
                <option value="1" <?php if($cate_info['is_show'] == 1) echo 'selected=""';?>>是</option>
            </select>
            <span class="inputInfo">是否显示在右侧菜单栏</span>
		</div>
	</div>
	<div class="formBar">
		<ul>
			<li><div class="buttonActive"><div class="buttonContent"><button type="submit">确认</button></div></div></li>
			<li><div class="button"><div class="buttonContent"><button class="close" type="button">关闭</button></div></div></li>
		</ul>
	</div>
</div>
</form>